export default ({ request }) => ({
  /**
   * 获取月份对应的日计划
   * @returns 
   */
  GET_DAY_PLAN_TIME_LIST(data) {
    return request({
      url: "/budwk/smartlc/lc/planlistmng/timeList",
      method: "post",
      data: data,
    });
  },
  /**
   * 查询日计划列表
   * @returns 
   */
  QUERY_DAY_PLAN_LIST(data) {
    return request({
      url: "/budwk/smartlc/lc/planlistmng/list",
      method: "post",
      data: data,
    });
  },
  /**
   * 创建日计划
   * @returns 
   */
  CREATE_DAY_PLAN(data) {
    return request({
      url: "/budwk/smartlc/lc/planlistmng/create",
      method: "post",
      data: data,
    });
  },
  /**
   * 修改日计划
   * @returns 
   */
  UPDATE_DAY_PLAN(data) {
    return request({
      url: "/budwk/smartlc/lc/planlistmng/update",
      method: "post",
      data: data,
    });
  },
  /**
   * 开始日计划
   * @returns 
   */
  START_DAY_PLAN(data) {
    return request({
      url: "/budwk/smartlc/lc/taskmng/start",
      method: "post",
      data: data,
    });
  },
  /**
   * 获取日计划下的工序列表
   * @returns 
   */
  GET_DAY_PLAN_TASK(data) {
    return request({
      url: "/budwk/smartlc/lc/dayplanmng/list",
      method: "post",
      data: data,
    });
  },
  /**
   * 删除日计划下的任务
   * @returns 
   */
  DEL_DAY_PLAN_TASK(id) {
    return request({
      url: "/budwk/smartlc/lc/dayplanmng/delete/" + id,
      method: "delete",
    });
  },
  /**
   * 批量更新任务{}
   * @returns 
   */
  BATCH_UPDATE_TASK(data) {
    return request({
      url: "/budwk/smartlc/lc/dayplanmng/batchUpdate",
      method: "post",
      data: data,
    });
  }
});
